package top.ligongzi.hrm.clients;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class SysmanageServiceClientFallBackFactory implements
        FallbackFactory<SysmanageServiceClient>{
    @Override
    public SysmanageServiceClient create(Throwable throwable) {
        return new SysmanageServiceClient() {
            @Override
            public Map<String, Object> getEmpAndTenant(Long loginUserId) {
                return null;
            }
        };
    }
}
